@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="categoryInfoForm">

            <input type="hidden" id="id" value="${category.id}">
            <input type="hidden" id="quanxianValue" value="${category.quanxian}">
            <input type="hidden" id="ageValue" value="${category.age}">
            <input type="hidden" id="guanggaoValue" value="${category.guanggao}">
            <input type="hidden" id="shopValue" value="${category.shop}">

            <div class="row">
                <div class="col-sm-6">
                    <#icon id="iconPath" name="专辑logo" underline="true" iconImg="${category.iconPath}" />
                    <#select id="bannerList" name="所属栏目" >
                    @for(banner in category.bannerList) {
                    @if(banner.selected == 'true') {
                    <option value="${banner.id}" selected="selected">${banner.name}</option>
                    @}
                    @if(banner.selected == 'false') {
                    <option value="${banner.id}">${banner.name}</option>
                    @}
                    @}
                </#select>


<!--                    <#input id="intro" name="简介" underline="true" value="${category.intro}" />-->
                </div>
                <div class="col-sm-6">
                    <#input id="categoryName" name="专辑名称" underline="true" value="${category.name}" />
                    <#input id="type" name="类型" underline="true" value="${category.type}" />

                    <#input id="recRate" name="推荐排序" underline="true" value="${category.recRate}"/>
                </div>
            <div class="col-sm-6">
                <!--                <#ageModal id="age" name="年龄段" readonly="readonly" underline="true" type="button"/>-->
                <#select id="age" name="年龄段" >

                <option value="0">胎教</option>
                <option value="1">0-1岁</option>
                <option value="2">1-3岁</option>
                <option value="3">3-5岁</option>
                <option value="4">5-7岁</option>
                <option value="5">7-12岁</option>

            </#select>
            <#select id="quanxian" name="权限" >

                    <option value="0">游客</option>
                    <option value="1">会员</option>
                    <option value="2">VIP</option>

                    </#select>
                </div>
                <div class="col-sm-6">
                    <#select id="guanggao" name="广告选择" >
                    @for(gg in ggList) {
                    <option value="${gg.id}">${gg.name}</option>
                    @}
                </#select>
                <#select id="shop" name="电商选择" >

                <option value="1">暂无</option>

            </#select>
            </div>
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">简介</label>
                    </div>
                    <textarea name="intro" id="intro">${category.intro}</textarea>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="CategoryInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="CategoryInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/js/ckeditor/ckeditor.js">
</script>
<script type="text/javascript">
    CKEDITOR.replace('intro');
</script>
<script src="${ctxPath}/static/modular/app/category/radio/category_info.js"></script>
@}
